<?php 

namespace pmvc\mvc\security\facebook;

use Facebook;

class BasicFacebookUserAdapter
	implements FacebookUserAdapter {

	private $roles;

	public function getUser(Facebook $facebook, FacebookAuthentication $authentication) {
		return new BasicFacebookUser($facebook->api('/me'), $this->roles);
	}

	public function setRoles($roles) {
		$this->roles = $roles;
	}

}

?>